import { BaseService, Service } from '../../../utils/request';

@Service('app/jingdong')
export default class extends BaseService {
	// 列表页分类
	category(params) {
		return this.request({
			url: '/category',
			params: {
				...params
			}
		});
	}

	superGoods(params) {
		return this.request({
			url: '/super',
			params: {
				...params
			}
		});
	}

	detail(params) {
		return this.request({
			url: '/ginfo',
			params
		});
	}

	createShortUrl(data) {
		return this.request({
			url: '/createShortUrl',
			method: 'POST',
			data: {
				...data
			}
		});
	}
}
